<extend name="Layout/main" />
<block name="css"></block>
<block name="style"></block>
<block name="js"></block>
<block name="script"></block>
<block name="model">撤销记录管理</block>
<block name="controller">撤销记录列表</block>
<block name="action">撤销记录列表</block>
<block name="desc"></block>
<block name="content">
<div class="box box-primary">
	<div class="box-header with-border">
		<h3 class="box-title">撤销记录列表</h3>
		<div class="box-tools">
			<input type="button" value="下载报表" onclick="window.open('download?{:http_build_query(I('get.'))}')" class="btn btn-info pull-right">
		</div>
	</div>
	<div class="box-body table-responsive">
		<table class="table table-bordered table-striped table-hover">
			<tbody>
				<notempty name="data">
				<tr>
					<th class="text-center">编号</th>
					<th class="text-center">合同编号</th>
					<th class="text-center">姓名</th>
					<th class="text-center">手机号码</th>
					<th class="text-center">合同状态</th>
					<th class="text-center">校对状态</th>
					<th class="text-center">提交时间</th>
					<th class="text-center">审核状态</th>
					<th class="text-center">状态</th>
					<th class="text-center">操作</th>
				</tr>
				<volist name='data' id='items'>
					<tr>
						<td class="text-center">{$items.cancel_id}</td>
						<td class="text-center">{$items.cancel_contract_id}</td>
						<td class="text-center">{$items.cancel_name}</td>
						<td class="text-center">{$items.cancel_mobile_number}</td>
						<td class="text-center">{$items.contract_status}</td>
						<td class="text-center">{$items.match_status}</td>
						<td class="text-center">{$items.time}</td>
						<td class="text-center">{$items.status}</td>
						<td class="text-center">{$items.state}</td>
						<td class="text-center">
							<a href="{$items.detail}">详情</a>
							<a href="{$items.audit}">审核</a>
							<a href="{$items.lock}" rel-msg="确认该操作？" rel-action="get" >
								<if condition='$items.cancel_state == "NORMAL"'>锁定<else/>解锁</if>
							</a>
						</td>
					</tr>
				</volist>
				<else />
					<tr><td>暂无符合条件记录</td></tr>
				</notempty>
			</tbody>
		</table>
	</div>
	<notempty name="data">
	<div class="box-footer clearfix">
		{$page}
	</div>
	</notempty>
</div>
</block>